﻿namespace WMS6.Web.BaseInfoServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="AttachDetailInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class AttachDetailInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string AttachIDField;
        [OptionalField]
        private string AttachNameField;
        [OptionalField]
        private decimal AttachSizeField;
        [OptionalField]
        private string AttachTypeField;
        [OptionalField]
        private string AuditByField;
        [OptionalField]
        private DateTime AuditDateField;
        [OptionalField]
        private string AuditTypeField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string DescrField;
        [OptionalField]
        private string DisplayNameField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private string IsAuditField;
        [OptionalField]
        private int LineIDField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string UrlField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string AttachID
        {
            get
            {
                return this.AttachIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AttachIDField, value))
                {
                    this.AttachIDField = value;
                    this.RaisePropertyChanged("AttachID");
                }
            }
        }

        [DataMember]
        public string AttachName
        {
            get
            {
                return this.AttachNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AttachNameField, value))
                {
                    this.AttachNameField = value;
                    this.RaisePropertyChanged("AttachName");
                }
            }
        }

        [DataMember]
        public decimal AttachSize
        {
            get
            {
                return this.AttachSizeField;
            }
            set
            {
                if (!this.AttachSizeField.Equals(value))
                {
                    this.AttachSizeField = value;
                    this.RaisePropertyChanged("AttachSize");
                }
            }
        }

        [DataMember]
        public string AttachType
        {
            get
            {
                return this.AttachTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AttachTypeField, value))
                {
                    this.AttachTypeField = value;
                    this.RaisePropertyChanged("AttachType");
                }
            }
        }

        [DataMember]
        public string AuditBy
        {
            get
            {
                return this.AuditByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AuditByField, value))
                {
                    this.AuditByField = value;
                    this.RaisePropertyChanged("AuditBy");
                }
            }
        }

        [DataMember]
        public DateTime AuditDate
        {
            get
            {
                return this.AuditDateField;
            }
            set
            {
                if (!this.AuditDateField.Equals(value))
                {
                    this.AuditDateField = value;
                    this.RaisePropertyChanged("AuditDate");
                }
            }
        }

        [DataMember]
        public string AuditType
        {
            get
            {
                return this.AuditTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AuditTypeField, value))
                {
                    this.AuditTypeField = value;
                    this.RaisePropertyChanged("AuditType");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string Descr
        {
            get
            {
                return this.DescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DescrField, value))
                {
                    this.DescrField = value;
                    this.RaisePropertyChanged("Descr");
                }
            }
        }

        [DataMember]
        public string DisplayName
        {
            get
            {
                return this.DisplayNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DisplayNameField, value))
                {
                    this.DisplayNameField = value;
                    this.RaisePropertyChanged("DisplayName");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    this.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public string IsAudit
        {
            get
            {
                return this.IsAuditField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsAuditField, value))
                {
                    this.IsAuditField = value;
                    this.RaisePropertyChanged("IsAudit");
                }
            }
        }

        [DataMember]
        public int LineID
        {
            get
            {
                return this.LineIDField;
            }
            set
            {
                if (!this.LineIDField.Equals(value))
                {
                    this.LineIDField = value;
                    this.RaisePropertyChanged("LineID");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string Url
        {
            get
            {
                return this.UrlField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UrlField, value))
                {
                    this.UrlField = value;
                    this.RaisePropertyChanged("Url");
                }
            }
        }
    }
}

